<script setup lang="ts">
const input = ref()
</script>

<template>
  <div>
    <div class="list-item">
      <div class="left-text">123</div>
      <div class="middle-input">
        <el-input v-model="input" placeholder="Please input" />
      </div>
      <el-button type="primary">Primary</el-button>
    </div>
  </div>
</template>


<style scoped>
.list-item {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.left-text {
  width: 100px;
  padding: 0 10px;
  text-align: right;
  white-space: nowrap;
}

.middle-input {
  flex: 1;
  padding: 0 10px;
}
</style>